<?php 
// url configuration file
return array(
    array('/', 'HomeController#index'),
    array('/users/', 'UserController#index', array('methods' => 'POST,GET', 'name' => 'users_create')),
    array('/users/:email/', 'UserController#getUser', array('methods' => 'GET', 'filters' => array('email' => '([^/]+)'))),
    array('/users/:email/car', 'CarController#getUserCar', array('methods' => 'GET', 'filters' => array('email' => '([^/]+)'))),
    array('/cars/', 'CarController#create', array('methods' => 'POST')),
    
    array('/cars/:vin/details', 'CarController#createDetails', array('methods' => 'POST')),
    array('/cars/:vin/details', 'CarController#getDetails', array('methods' => 'GET')),
    array('/cars/:vin/details', 'CarController#updateDetails', array('methods' => 'PUT')),
    
    array('/models', 'CarModelController#index', array('methods' => 'GET')),
    array('/authenticate', 'UserController#authenticate', array('methods' => 'POST'))
    
    // samples
    //array('/about', 'HomeController#about'),
    //array('/zips', 'ZipcodeCityController#index'),
    //array('/zips/:id', 'ZipcodeCityController#view')
);
